#include "cpu/exec/template-start.h"

#define instr leave

static void do_execute() {
	REG(R_ESP)=REG(R_EBP);//保存ebp
    REG(R_EBP)=MEM_R(REG(R_EBP),R_SS);//ebp恢复至原来的值
    REG(R_ESP)=REG(R_ESP)+DATA_BYTE;//pop
    print_asm("leave");
}

make_instr_helper(r);

#include "cpu/exec/template-end.h"
